import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-12
 * Time: 9:46
 */

public class August12th {
/*    public static void main1(String[] args) {
        System.out.println(add(2,3));
        System.out.println(add(1.3,2.5));
        System.out.println(add(1,6,1.3));
    }
    public static int add(int x,int y){
        return x+y;
    }

    public static double add(double x,double y){
        return x+y;
    }

    public static double add(double x,double y,double z){
        return x+y+z;
    }*/

/*    public static void main(String[] args) {
        System.out.println(add(1,2));
    }

    public static int add(int x,int y){
        return x+y;
    }

    public static double add(int x,int y){
        return x+y;
    }*/

/*    public static void main(String[] args) {
        print(1234);
    }

    public static  void print(int num){
        while(num!=0){
            System.out.println(num%10);
            num/=10;
        }
    }*/

/*    public static void main(String[] args) {
        fun(10);
    }

    public static  void fun(int n){
        fun(n);
    }*//**/

/*    public static void main(String[] args) {
        double sum=0;
        int flag=1;
        for (int i = 1; i <=100 ; i++) {
            sum=sum+flag*(1.0/i);
            flag=-flag;
        }
        System.out.println(sum);
    }*/

 /*   public static void main(String[] args) {
        int n=5;
        for (int i = 0; i <5; i++) {
            for (int j = 0; j <5; j++) {
                if(i==j||i+j==n-1){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }*/
/*
    public static void main(String[] args) {
        System.out.println(max(1, 2, 3));
    }

    public static int max(int x,int y,int z){
        int ret=x>y?x:y;
        return ret>z?ret:z;
    }*/


/*    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int count=3;
        while(count!=0){
            System.out.println("请输入密码");
            String password=scanner.nextLine();
            if(password.equals("123456")) {
                System.out.println("输入正确，登陆成功");
                break;
            }else{
                count--;
                System.out.println("输入错误，还有"+count+"次机会");
            }
        }
    }*/


/*    public static void main(String[] args) {
        System.out.println(factor(5));
    }

    public  static  int factor(int n){
        if(n==1){
            return 1;
        }else{
            return n*factor(n-1);
        }
    }*/


/*    public static void main(String[] args) {
        print(1234);
    }

    public  static void print(int num){
        if(num<10){
            System.out.print(" "+num);
        }else{
            System.out.print(" "+num % 10);
            print(num/10);*/


  /*      }
    }*/

/*    public static void main(String[] args) {
        System.out.println(sum(10));
    }
    public  static int sum(int num){
        if(num==1){
            return 1;
        }else{
            return num+sum(num-1);
        }
    }*/

/*    public static void main(String[] args) {
        System.out.println(sum(4561));
    }

    public  static  int sum(int num){
        if(num<10){
            return num;
        }else{
            return sum(num/10)+num%10;
        }

    }*/

    public static int count=0;
 /*   public static void main(String[] args) {
        System.out.println(fib(45));
        System.out.println(count);
    }
    public  static  int fib(int n){
        if(n==1){
            count++;
            return 0;
        }else if(n==2){
            return 1;
        }else{
            return fib(n-1)+fib(n-2);
        }
    }*/


  /*  public static void main(String[] args) {
        System.out.println(fib(45));
    }
    public  static  int fib(int n){
        if(n==1){
            return 0;
        }else if(n==2){
            return 1;
        }else{
            int n1=0;
            int n2=1;
            int n3=0;
            for (int i = 3; i <n; i++) {
                n3=n1+n2;
                n1=n2;
                n2=n3;
            }
            return n3;
        }
    }*/


    /*public static void main(String[] args) {
        int[] array1=new int[10];//创建一个可以容纳10个int类型元素的数组
        double[] array2=new double[5];
        String[] array3=new String[3];

        int[] array4=new int[]{1,2,3,4,5};
        String[] arry5=new String[]{"hello","qwerty"};

        int [] array6={1,2,3,4};
        String[] array7={"hello"};

        int[] array8;*/
        //array8={1,2,3,4};

/*        int[] array9;
        array9=new int[]{1,2,3,4};
        System.out.println(array9[2]);
        array9[3]=9;
        System.out.println(array9[3]);*/

        //System.out.println(array9[4]);
       /* int[] array9;
        array9=new int[]{1,2,3,4};*/
        /*for (int i = 0; i < array9.length; i++) {
            System.out.println(array9[i]);
        }*/

/*        for (int x: array9) {
            System.out.println(x);
        }*/

       /* System.out.println(Arrays.toString(array9));*/
   // }

    public static void main(String[] args) {
/*        int[] array;
        System.out.println(array[2]);*/

/*        int[] array1=new int[]{10,21,12};
        int[] array2=new int[]{0,2,1,34};
        array1=array2;
        System.out.println(Arrays.toString(array1));*/

/*        int[] array={1,2,34};
        int[] array2=array;

        System.out.println(Arrays.toString(array2));
        System.out.println(Arrays.toString(array));*/

        //int[] array={1,2,3,4,5};
/*        System.out.println("前"+Arrays.toString(array));
        func1(array);
        System.out.println("后"+Arrays.toString(array));*/
        //System.out.println("后"+Arrays.toString(fun2()));

/*        int a=10;
        int[] array1={a};
        System.out.println("后"+Arrays.toString(array1));*/


/*        int[] array=fib(10);
        System.out.println(Arrays.toString(array));*/

        //int[] array={1,2,3,4,5};
        //System.out.println(Arrays.toString(copyArray(array)));
        //System.out.println(Arrays.toString(Arrays.copyOf(array, array.length)));
        //System.out.println(Arrays.toString(Arrays.copyOf(array, array.length-2)));
        //System.out.println(Arrays.toString(Arrays.copyOf(array, array.length*3)));
       // System.out.println(Arrays.toString(Arrays.copyOfRange(array, 0,4)));//[)
   /*     System.out.println(Arrays.toString(Arrays.copyOfRange(array, 0,5)));//[)
        System.out.println(Arrays.toString(Arrays.copyOfRange(array, 2,4)));//[)*/
  /*      Arrays.sort(array);
        System.out.println(Arrays.toString(array));
        System.out.println(Arrays.binarySearch(array, 11));*/

/*        int[] array={1,2,3,4,5,0,21,11};
        System.out.println(Arrays.toString(array));
        reverseArray(array);
        System.out.println(Arrays.toString(array));*/


 /*       int[][] array2=new int[2][3];
        int[][] array=new int[][]{{1,23},{2,3}};

        for (int i = 0; i <2; i++) {
            for (int j = 0; j <3; j++) {
                System.out.print(" "+array1[i][j]);
            }
            System.out.println();
        }*/


/*        System.out.println(array1.length);
        System.out.println(array1[0].length);
        System.out.println(array1[1].length);

        for (int i = 0; i < array1.length; i++) {
            for (int j = 0; j <array1[i].length; j++) {
                System.out.print(" "+array1[i][j]);
            }
            System.out.println();
        }*/

        int[][] array1={{1,2,3},{3,4}};
        for (int[] temp:array1) {
            for (int x:temp) {
                System.out.print(" "+x);
            }
            System.out.println();
        }

        System.out.println(Arrays.deepToString(array1));
    }

    /*public  static  void reverseArray(int[] array){
        int left=0;
        int right= array.length-1;
        while(left<right){
            int temp=0;
            temp=array[left];
            array[left]=array[right];
            array[right]=temp;
            left++;
            right--;
        }
    }*/



















   /* public  static  void bubleSort(int[] array){
        for (int i = 0; i < array.length-1; i++) {
            boolean flag=false;
            for (int j = 0; j < array.length-i-1; j++) {
                if(array[j]>array[j+1]){
                    int temp=0;
                    temp=array[j];
                    array[j]=array[j+1];
                    array[j+1]=temp;
                    flag=true;
                }
            }
            if(flag==false){
                break;
            }
        }

    }*/











    /*public  static  int binarySerach(int[] array,int k){
        int left=0;
        int right=array.length-1;
        while(left<=right){
            int mid=(left+right)/2;
            if(array[mid]>k){
                right=mid-1;
            }else if(array[mid]<k) {
                left=mid+1;
            }else{
                return mid;
            }
        }
        return -1;
    }
*/










/*    public  static int find(int[] array,int k){
        for (int i = 0; i < array.length; i++) {
            if(k==array[i]){
                return i;
            }
        }
        return -1;
    }*/
















/*    public  static double average(int[] array){
        double sum=0;
        for (int i = 0; i <array.length;i++) {
            sum+=array[i];
        }
        return sum/ array.length;
    }*/













   /* public  static int[] copyArray(int[] array){
        int[] newArray=new int[array.length];
        for (int i = 0; i <array.length; i++) {
            newArray[i]=array[i];
        }
        return newArray;
    }
*/











/*    public  static  String myToString(int[] array){
        if(array==null||array.length==0){
            return null;
        }
        String ret="[";
        for (int i = 0; i <array.length; i++) {
            ret+=array[i];
            if(i!=array.length-1){
                ret+=",";
            }
        }
        ret+="]";
        return ret;

    }*/










 /*   public static int[] fib(int n){
        if(n<=0){
            return null;
        }
        int[] array=new int[n];
        array[0]=0;
        array[1]=1;

        for (int i =2; i <n; i++) {
            array[i]=array[i-1]+array[i-2];
        }

        return array;
    }*/


  /*  public  static  int[] fun2(){
        return new int[]{21,22};
    }*/





/*    public  static void func1(int[] array){
        array=new int[]{9,8,7,6};
    }*/




  /*  public  static  void print(int[] array){
        array[3]=79;
    }*/
    /*public static void print(int[] array){
        for (int i = 0; i < array.length; i++) {
            System.out.print(" "+array[i]);
        }
        array[3]=79;
    }*/


}
